<!DOCTYPE html>
<html lang="zh-cn">

<head>
    <meta charset="utf-8">
    <title>JS运行时测试页面</title>
    <style>
        html,
        body {
            margin: 0;
            padding: 0;
            border: 0;
            height: 100%;
            width: 100%;
        }
    </style>
    <link rel="stylesheet" type="text/css" href="./normalize.css">
</head>

<body style="background-color: lightgray;text-align: left;">
    <canvas id="stage" style="background-color: white;transform: scale(0.5) translate(-50%,-50%);" width="720" height="1280"></canvas>
    <label>选择逻辑文件</label>
    <input id="input_script" type="file" accept=".xe" /><br />
    <input id="input_start_fsm" type="text" value="Start.Main" />
    <script type="text/javascript">
        function changeFSM(b) {
            let fsmNameInput = document.getElementById("input_start_fsm");
            fsmNameInput.value = b.value;
        }
    </script>
    <input type="button" onclick="changeFSM({value:''})" value="X" />
    <input type="button" onclick="changeFSM(this)" value="新建库.游戏逻辑" />
    <input type="button" onclick="changeFSM(this)" value="test.Main" />
    <input type="button" onclick="changeFSM(this)" value="Start.Main" />
    <br />
    <button id="button_run">Run</button><br />
    <script src="3rd/fileOD.js"></script>
    <!-- <script type="module" src="../runtime/script.js"></script>
    <script type="module" src="../runtime/vm.js"></script>
    <script type="module" src="./js/canvas.js"></script> -->
    <script type="module" src="./js/index.js"></script>
    <script type="text/javascript">
    </script>
    <!-- <script src="../runtime/index.js"></script> -->
</body>

</html>